import request from "@/utils/request";

// /mall-admin/taskCheck/StatisticsYearList
export function statisticsYearList() {
  return request({
    url: "/taskCheck/StatisticsYearList",
    method: "get",
  });
}

// /mall-admin/taskCheck/detailCheckStatisticsDist

export function detailCheckStatisticsHouse(data) {
  return request({
    url: "/taskCheck/detailCheckStatisticsHouse",
    method: "get",
    params: data,
  });
}

// /mall-admin/taskCheck/createCheckStatistics
export function createCheckStatistics(data) {
  return request({
    url: "/taskCheck/createCheckStatistics",
    method: "POST",
    data,
  });
}

export function detailCheckStatisticsDist(data) {
  return request({
    url: "/taskCheck/detailCheckStatisticsDist",
    method: "get",
    params: data,
  });
}

///mall-admin/taskCheck/exportCheckStatisticsDist
export function exportCheckStatisticsDist(data) {
  return request({
    url: "/taskCheck/exportCheckStatisticsDist",
    method: "get",
    params: data,
  });
}

// /mall-admin/taskCheck/detailListStatisticsHouse
export function detailListStatisticsHouse(data) {
  return request({
    url: "/taskCheck/detailListStatisticsHouse",
    method: "get",
    params: data,
  });
}

// /mall-admin/taskCheck/detailListStatisticsDist
export function detailListStatisticsDist(data) {
  return request({
    url: "/taskCheck/detailListStatisticsDist",
    method: "get",
    params: data,
  });
}

export function checkStatisticsAll(data) {
  return request({
    url: "/taskCheck/checkStatisticsAll",
    method: "POST",
    data,
  });
}

// /mall-admin/safe/importSeriousHouse
export function importSeriousHouse(data) {
  return request({
    url: "/safe/importSeriousHouse",
    method: "POST",
    data,
  });
}
// /mall-admin/safe/importSubwayProject
export function importSubwayProject(data) {
  return request({
    url: "/safe/importSubwayProject",
    method: "POST",
    data,
  });
}
// /mall-admin/safe/importFloodSeason
export function importFloodSeason(data) {
  return request({
    url: "/safe/importFloodSeason",
    method: "POST",
    data,
  });
}
// /mall-admin/safe/importWinter

export function importWinter(data) {
  return request({
    url: "/safe/importWinter",
    method: "POST",
    data,
  });
}

// /mall-admin/safe/importOther
export function importOther(data) {
  return request({
    url: "/safe/importOther",
    method: "POST",
    data,
  });
}
